var login_q=function($){
	$.fn.login=function(options){
		login_c.ddbb.push(this);
		this.payID=login_c.ddbb.length-1;
		this.options=options;
		this.init=login_c.init;
		this.showRegister=login_c.showRegister;
		
		this.init();
	}
}
var login_c={
	ddbb:[],
	init:function(){
		var payID=this.payID;
		$(this).find(".button_registro").click(
			function(){
				login_c.ddbb[payID].showRegister();
			}
		);
		if(fb_login){
			$(this).find(".button_registro").trigger("click");
		}
	},
	showRegister:function(){
		$.colorbox({inline:true,href:this.options.register});
	}
}

login_q(jQuery);
